package com.miao.commonn.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author xk
 * @email 2337156522@QQ.com
 * @date 2022-02-22 16:32:45
 */
@Data
public class UserVo implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */

	private Integer uid;
	/**
	 * 用户名
	 */
	private String nickname;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 盐
	 */
	private String salt;
	/**
	 * 头像
	 */
	private String head;
	/**
	 * 注册时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date registerData;
	/**
	 * 最近登录时间
	 */

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date lastLoginData;
	/**
	 * 登录次数
	 */

	private Integer loginCount;


	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getHead() {
		return head;
	}

	public void setHead(String head) {
		this.head = head;
	}

	public Date getRegisterData() {
		return registerData;
	}

	public void setRegisterData(Date registerData) {
		this.registerData = registerData;
	}

	public Date getLastLoginData() {
		return lastLoginData;
	}

	public void setLastLoginData(Date lastLoginData) {
		this.lastLoginData = lastLoginData;
	}

	public Integer getLoginCount() {
		return loginCount;
	}

	public void setLoginCount(Integer loginCount) {
		this.loginCount = loginCount;
	}
}
